<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">











<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>ioko-tapestry-commons - Component Reference: uk.co.ioko.tapestry.caching.components.Cache</title>
    <style type="text/css" media="all">
      @import url("../../../../../../../css/maven-base.css");
      @import url("../../../../../../../css/maven-theme.css");
      @import url("../../../../../../../css/site.css");
    </style>
    <link rel="stylesheet" href="../../../../../../../css/print.css" type="text/css" media="print" />
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
                                                    
<script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script>
                                                        
<script type="text/javascript">try {
                var pageTracker = _gat._getTracker("UA-75598-9");
                pageTracker._trackPageview();
                } catch(err) {}</script>
                    </head>
  <body class="composite">
    <div id="banner">
                  <a href="http://tapestry.formos.com/projects/ioko-tapestry-commons/" id="bannerLeft">
    
                                            <img src="../../../../../../../images/tapestry-commons.png" alt="" />
    
            </a>
                        <a href="http://www.ioko.com/" id="bannerRight">
    
                                            <img src="../../../../../../../images/ioko.png" alt="" />
    
            </a>
            <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="breadcrumbs">
          
  

  
    
            
  
    
            <div class="xleft">
        Last Published: 2009-09-25
                      </div>
            <div class="xright">      
  

  
    
            
  
    
             Version: 1.6.0-SNAPSHOT
      </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="leftColumn">
      <div id="navcolumn">
           
  

  
    
            
  
    
                   <h5>Sites</h5>
            <ul>
              
    <li class="none">
                    <a href="http://tapestry.formos.com/projects/ioko-tapestry-commons/" class="externalLink">Release Site</a>
          </li>
              
    <li class="none">
                    <a href="http://tapestry.formos.com/nightly/ioko-tapestry-commons/" class="externalLink">Nightly Site</a>
          </li>
          </ul>
              <h5>Project Documentation</h5>
            <ul>
              
                
              
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
              
        <li class="collapsed">
                    <a href="../../../../../../../project-info.html">Project Information</a>
                </li>
              
                
              
      
              
        <li class="collapsed">
                    <a href="../../../../../../../project-reports.html">Project Reports</a>
                </li>
          </ul>
                        <h5>Developers</h5>
            <ul>
              
    <li class="none">
                    <a href="../../../../../../../development.html">Development Guide</a>
          </li>
          </ul>
                                           <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
            <img alt="Built by Maven" src="../../../../../../../images/logos/maven-feather.png"></img>
          </a>
                       
  

  
    
            
  
    
        </div>
    </div>
    <div id="bodyColumn">
      <div id="contentBox">
        <div class="section"><h2><a name="uk.co.ioko.tapestry.caching.components.Cache"></a>uk.co.ioko.tapestry.caching.components.Cache</h2>
<p></p>
<p><a href="../../../../../../../apidocs/uk/co/ioko/tapestry/caching/components/Cache.html">[JavaDoc]</a></p>
</div>
<div class="section"><h2><a name="Component_Parameters"></a>Component Parameters</h2>
<table class="bodyTable"><tr class="a"><th>Name</th>
<th>Type</th>
<th>Flags</th>
<th>Default</th>
<th>Default Prefix</th>
<th>Since</th>
<th>Description</th>
</tr>
<tr class="b"><td>cacheKey</td>
<td>String</td>
<td>NOT Allow Null</td>
<td></td>
<td>literal</td>
<td></td>
<td>By default, cached components are keyed on their full class name.  If you wish to provide your
 own key you can do so by providing a cacheKey.  Note that this will override the cacheKeySuffix
 parameter.
</td>
</tr>
<tr class="a"><td>cacheKeySuffix</td>
<td>String</td>
<td>NOT Allow Null</td>
<td></td>
<td>literal</td>
<td></td>
<td>By default, cached components are keyed on their full class name.  If this granularity is
 insufficient, you can provide a cacheKeySuffix that will differentiate between different
 instances of the same component.
</td>
</tr>
<tr class="b"><td>cacheRegion</td>
<td>uk.co.ioko.tapestry.caching.services.support.CacheRegion</td>
<td>NOT Allow Null</td>
<td>medium</td>
<td>literal</td>
<td></td>
<td>Specifies how long this content should be cached for - should be 'short', 'medium' or 'long'
 (case-insensitive) as defined by the CacheRegion enum.
</td>
</tr>
<tr class="a"><td>element</td>
<td>String</td>
<td>NOT Allow Null</td>
<td></td>
<td>literal</td>
<td></td>
<td></td>
</tr>
</table>
<p>Informal parameters: supported</p>
</div>
<hr />
<p><a href="../../../../../../index.html">Back to index</a></p>

      </div>
    </div>
    <div class="clear">
      <hr/>
    </div>
    <div id="footer">
      <div class="xright">&#169;  
          2009
    
          ioko
          
  

  
    
            
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
  </body>
</html>
